package com.sservice.service.service.impl;

import com.sservice.model.dao.INoticeDao;
import com.sservice.model.entity.Notice;
import com.sservice.model.vo.NoticeVo;
import com.sservice.service.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

@Service
public class NoticeServiceImpl implements INoticeService {
    @Autowired
    private INoticeDao dao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Notice record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(Notice record) {
        return dao.insertSelective(record);
    }

    @Override
    public Notice selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Notice record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Notice record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public int sendTo(Notice record) {
        return 0;
    }

    @Override
    public List<NoticeVo> queryByPage(NoticeVo notice) {
        return dao.queryByPage(notice);
    }

    @Override
    public int queryByCount(NoticeVo notice) {
        return dao.queryByCount(notice);
    }
}
